<template>
	<view class="big-card">
		<image class="left" :src="cardDetail.cover_image" mode="scaleToFill"></image>

		<view class="right">
			<view class="right-title">{{ cardDetail.title }}</view>
			<view class="right-subtitle">22.2万人再追</view>
			<view class="right-tip">{{ cardDetail.type }}</view>
			<view class="right-desc">{{ cardDetail.play_desc }}</view>

			<view class="right-action">
				<view class="action-btn action-left">继续观看</view>
				<view class="action-btn action-right">追</view>
			</view>
		</view>
	</view>
</template>

<script setup>
	defineProps({
		cardDetail: Object
	});
</script>

<style lang="scss">
	.big-card {
		display: flex;
		width: 100%;
		height: 350rpx;
		overflow: hidden;
		border-radius: 12rpx;
		margin-bottom: 30rpx;

		.left {
			flex: 0.9;
			height: 100%;
		}

		.right {
			flex: 1;
			height: 100%;
			position: relative;
			box-sizing: border-box;
			padding-left: 20rpx;
			background: #f9f9f9;

			.right-title {
				font-size: 28rpx;
				font-weight: 600;
				color: #000000;
				margin-top: 20rpx;
			}
			.right-subtitle {
				font-size: 22rpx;
				font-weight: 500;
				color: goldenrod;
				background: #ffeddd;
				padding: 4rpx 10rpx;
				border-radius: 10rpx;
				width: fit-content;
				margin-top: 20rpx;
			}
			.right-tip {
				font-size: 22rpx;
				font-weight: 500;
				color: #999999;
				margin-top: 10rpx;
			}
			.right-desc {
				font-size: 22rpx;
				line-height: 1.4;
				font-weight: 500;
				color: #999999;
				width: 90%;
				// height: 300rpx;
				margin-top: 20rpx;
				overflow: hidden;
				text-overflow: ellipsis;
				display: -webkit-box;
				-webkit-box-orient: vertical;
				-webkit-line-clamp: 3;
				margin-top: 20rpx;
			}
			.right-action {
				display: flex;
				align-items: center;
				position: absolute;
				bottom: 20rpx;
				left: 50%;
				transform: translateX(-50%);

				.action-btn {
					background: #ffffff;
					border-radius: 25rpx;
					padding: 10rpx 25rpx;
					font-size: 22rpx;
					color: #000000;
					font-weight: 400;
					white-space: nowrap;
				}
				.action-left {
					margin-right: 20rpx;
				}
			}
		}
	}
</style>
